<?php
/**
 * Класс, отвечающий за работу c ответом от пользователя
 */
final class Response {
	private $actionPath = null;
	private $pagePath = null;
	private $parameters = array();
	private $error = null;

	public function getActionPath() {
		return $this->actionPath;
	}

	public function setActionPath($actionPath) {
		$this->actionPath = (string)$actionPath;
	}

	public function getPagePath() {
		return $this->pagePath;
	}

	public function setPagePath($pagePath) {
		$this->pagePath = (string)$pagePath;
	}

	public function getParameter($key) {
		return $this->parameters[$key];
	}

	public function setParameter($key, $value) {
		$this->parameters[$key] = $value;
	}

	public function isParameter($key) {
		return isset($this->parameters[$key]);
	}

	public function getError() {
		return $this->error;
	}

	public function setError($error) {
		$this->error = (string)$error;
	}
}
?>